package librairies.liste;

import static org.junit.Assert.assertTrue;
import librairies.liste.list.Chainon;

import org.junit.Test;

public class ChainonTest
{
	@Test
	public void test()	//ok
	{
		Chainon<String> c1 = new Chainon<String>("VAL1");
		Chainon<String> c2 = new Chainon<String>("VAL2");
		
		c1.setPrecedent(null);
		c2.setSuivant(null);
		
		c1.setSuivant(c2);
		c2.setPrecedent(c1);
		
		assertTrue(c1.getSuivant().equals(c2));
		assertTrue(c2.getPrecedent().equals(c1));
	}
}
